Customize which-key-sort-order with list
authorJimmy Yuen Ho Wong <wyuenho@users.noreply.github.com>
Sat, 20 May 2017 22:46:12 +0000 (23:46 +0100)
committerGitHub <noreply@github.com>
Sat, 20 May 2017 22:46:12 +0000 (23:46 +0100)
This will display a list the user can choose from in customize instead of having them to type

which-key.el

index 4dc772bfd9c5d023b1fe51461992a30e08b04b7e..137ab41d1e23d8411068e1a1d8abbd17784d8ff3 100644 (file)
@@ -355,7 +355,11 @@ are
 See the README and the docstrings for those functions for more
 information."
   :group 'which-key
-  :type 'function)
+  :type '(choice (function-item which-key-key-order)
+                 (function-item which-key-key-order-alpha)
+                 (function-item which-key-description-order)
+                 (function-item which-key-prefix-then-key-order)
+                 (function-item which-key-local-then-key-order)))
 
 (defcustom which-key-sort-uppercase-first t
   "If non-nil, uppercase comes before lowercase in sorting